<template>
    <div>
        <div class="header">
            <el-header>
            <div class="title">后台登陆管理系统</div>
            <div>{{name}}</div>
            </el-header>
        </div>
    </div>
</template>
<script>
import { getToken } from '@/utils/setToken';
export default {

    data(){
        return{
            name:''
        }
    },
    created(){
        this.name=getToken('username')
    }
    
}

</script>
<style lang="less" scoped>
    .header{
        .el-header{
            background-color: #2578b5;
            color: white;
            line-height: 60px;
            display: flex;
            justify-content: space-between;
            .title{
                width: 200px;
                font-size: 24px;
            }
        }
    }


</style>